package controllers

import com.dajie.pt.server.MMSegService
import play.api._
import play.api.mvc._

object Application extends Controller {

  def index = Action {
    Ok(views.html.index("Your new application is ready."))
  }

  def seg(input: String) = Action {
    Ok(MMSegService.segWords(input))
  }

  def reload() = Action {
    Ok(MMSegService.reloadDic())
  }
}